﻿package java;

import java.util.Scanner;

public class yinhang {
	Scanner input =new Scanner(System.in);
	String name;
	int mima;
	int zhanghao;
	int cune;
	public int showgaimi(int xin){
		System.out.println("请输入旧密码");
		int jiu=input.nextInt();
		if(jiu==mima){
			System.out.println("请输入新密码");
			 xin=input.nextInt();
		}else{
			System.out.println("输入旧密码不正确");
		}
		mima=xin;
		return mima;	
	}
	public int showcunkuan(int cun){
		System.out.println("请输入存款");
		cun=input.nextInt();
		cune+=cun;
		return cune;
	}
	public int showlixi(int li){
		li=(int) (showcunkuan(cune)*0.5);
		return li;
	}
}
